package com.jyy.prefabricated.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @version 1.0.0
 * @author: zjj
 */
@Data
public class StudentExamPaperVo {

    private Integer studentExamId;

    private Integer currentCount;

    private Integer examCount;

    private Integer answerTime;

    //StudentExam创建时间，点击答题开始计算答题时长（第二次考试或更多时调用）
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    //考试(exam)开始时间,第一次考试使用这个计算答题时长
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date examStartTime;

    //考试(exam)开始时间,第一次考试使用这个计算答题时长
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date examEndTime;

    private String title;


    //考试区域集合
    private List<StudentExamAreaVo> areas = new ArrayList<>();

    //题目数量
    private Integer questionCount;

    //考试状态
    private Integer status;

    //总成绩
    private Double totalScore = 0D;

    //批阅状态(0未批阅；1批阅)
    private Integer readOverStatus;

    private Integer examId;

}
